package com.guli.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.mall.member.entity.MemberEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 会员
 *
 * @author 罗俊华
 * @email 1007052116@qq.com
 * @date 2020-10-18 18:44:16
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils<MemberEntity> queryPage(Integer currentPage, Integer size, Map<String, Object> params);

    void checkRepeatAndSave(MemberEntity member) throws Exception;

    MemberEntity login(MemberEntity memberEntity);

    MemberEntity loginFromWeiBoUid(MemberEntity memberEntityFromWeiBo);

    /**
     * 根据用户 的微博 accessToken 和 uid 获取用户的微博信息
     * @param memberEntity
     * @return
     */
    Map<String,Object> getWeiBoUserInfoOfUser(MemberEntity memberEntity);

}

